package servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class Interlun
 */
@WebServlet("/Interlun")
public class Interlun extends HttpServlet {
	private static final long serialVersionUID = 1L;
	
    @Override
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
			PrintWriter out = response.getWriter();
			out.print("{\"message\":[{\"image_src\":\"https://img.tukuppt.com//ad_preview/00/10/87/5c993a042ef16.jpg!/fw/780\",\"open_type\":\"navigate\",\"goods_id\":129,\"navigator_url\":\"/pages/goods_detail/main?goods_id=129\"},{\"image_src\":\"https://img.tukuppt.com//ad_preview/00/24/03/5f6584224042a.jpg!/fw/780\",\"open_type\":\"navigate\",\"goods_id\":395,\"navigator_url\":\"/pages/goods_detail/main?goods_id=395\"},{\"image_src\":\"https://img.tukuppt.com//ad_preview/00/33/20/5fc46e42862eb.jpg!/fw/780\",\"open_type\":\"navigate\",\"goods_id\":38,\"navigator_url\":\"/pages/goods_detail/main?goods_id=38\"}],\"meta\":{\"msg\":\"��ȡ�ɹ�\",\"status\":200}}");
    }
	/**
     * Default constructor. 
     */
    public Interlun() {
        // TODO Auto-generated constructor stub
    }
	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		response.getWriter().append("Served at: ").append(request.getContextPath());
	}
	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}
}
